package com.itheima.demo02;

public class PersonTest2 {
    public static void main(String[] args) {
        Person p = new Manager();

        Manager m = (Manager) p;
        m.setBonus(111);

        Person p3 = m;
        Manager p2 = (Manager) p3;
        System.out.println(p2.getBonus());
    }
}
